<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<table class="table table-striped">
	<tr>
		<th>ID</th>
		<th>TITLE</th>
		<th>Created Date</th>
		<th>Created By</th>
		<th>Modified Date</th>
		<th>Modified By</th>
		<th width="10%">Action</th>
	</tr>
	<s:iterator var="news" value="list">
		<s:url id="viewEditUrl" action="modul/news/page/detail"
			escapeAmp="false">
			<s:param name="id" value="id"></s:param>
		</s:url>
		<s:url id="urlEdit" action="modul/news/page/edit" escapeAmp="false">
			<s:param name="id" value="id"></s:param>
		</s:url>
		<s:url id="urlConfDel" action="modul/news/page/delete"
			escapeAmp="false">
			<s:param name="id" value="id"></s:param>
		</s:url>
		<tr>
			<td><s:property value="id" /></td>
			<td><s:property value="title" /></td>
			<td><s:date name="createdDate" format="dd-MMM-yyyy" /></td>
			<td><s:property value="createdBy" /></td>
			<td><s:date name="createdDate" format="dd-MMM-yyyy" /></td>
			<td><s:property value="modifiedBy" /></td>
			<td><sj:a href="%{urlEdit}" id="edit%{id}"
					targets="resultTarget" onBeforeTopics="clearTarget" cssClass="btn"
					onClickTopics="buttonClick">
					<i class="icon-pencil"></i>
				</sj:a> <sj:a href="%{urlConfDel}" targets="resultTarget" cssClass="btn"
					id="confirm%{id}" onClickTopics="buttonClick">
					<i class="icon-trash"></i>
				</sj:a></td>
		</tr>
	</s:iterator>
</table>

<div class="pagination">
	<ul>
		<s:iterator id="pager" end="total" begin="1" step="1">
			<s:url id="pageUrl" action="modul/news/list/paging" escapeAmp="false">
				<s:param name="_search">true</s:param>
				<s:param name="rows">
					<s:property value="rows" />
				</s:param>
				<s:param name="page">
					<s:property />
				</s:param>
				<s:param name="sord">
					<s:property value="sord" />
				</s:param>
				<s:param name="sidx">
					<s:property value="sidx" />
				</s:param>
			</s:url>
			<li><sj:a href="%{pageUrl}" targets="resultTarget">
					<s:property />
				</sj:a></li>
		</s:iterator>
	</ul>
</div>
